<template>
  <div class="container">
    <div
      class="flex flex-end"
      style="padding:30px 30px 52px 0"
    >
      <el-button
        type="primary"
        icon="el-icon-plus"
        style="background:rgba(1, 93, 255, 1)"
        @click="createDynamic"
      >发布新图文</el-button>
      <el-button
        type="primary"
        style="background:rgba(1, 93, 255, 1)"
        @click="openDraft"
      >草稿箱</el-button>
    </div>
    <Item :list="list"></Item>

    
  </div>
</template>

<script>
import Item from '../../views/dynamic/components/Item'
export default {
  components: {
    Item
  },
  data() {
    return {
      list: []
    }
  },
  mounted() {},
  methods: {
    createDynamic(){
      this.$router.push('/dynamic/send')
    },
    openDraft(){
      this.$router.push('/dynamic/draft')
    }
  }
}
</script>
<style lang='scss' scoped>
.container {
  margin: 20px 39px;
  background: #fff;
  
}

</style>